def outN(sf):
 n=0;s=""
 for x in open(sf):
  n = n+1
  s=s+ "#N"+str(n).zfill(4)+" "+x+"\n"
 return s 
import sys 
print outN(sf=sys.argv[1])
  